<template>
  <div id="">
    <img id="img" src="@/assets/setu.jpg" alt="" />
  </div>
</template>

<script setup lang="ts">
import {} from "vue";
import useBase64 from "./hooks/index";

useBase64({
  el: "#img",
}).then((res) => {
  console.log(res.baseURL);
});
</script>

<style lang="less" scoped>
#img{
  width: 20px;
}
</style>
